package com.dongdongshop.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbItemMapper;
import com.dongdongshop.pojo.TbItem;
import com.dongdongshop.service.GoodsItemService;

import javax.annotation.Resource;
import java.util.List;

@Service
@org.springframework.stereotype.Service
public class GoodsItemServiceImpl implements GoodsItemService {
    @Resource
    private TbItemMapper tbItemMapper;

    @Override
    public List<TbItem> selectByGoodsId(Long goodsId) {
        return tbItemMapper.selectByGoodsId(goodsId);
    }

    @Override
    public TbItem findItemById(Long itemId) {
        return tbItemMapper.selectByPrimaryKey(itemId);
    }
}
